#if !defined(AFX_MegaDrawerVOD_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
#define AFX_MegaDrawerVOD_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MegaDrawerVOD.h : header file
//
#include "../GUI/MegaDrawer.h"
#include "../GUI/MegaButton.h"
#include "../GUI/MegaListBox.h"
#include "../GUI/MegaComboBox.h"
#include "../RMSLib/Info.h"

/////////////////////////////////////////////////////////////////////////////
// CMegaDrawerVOD window

class CMegaDrawerVOD : public CMegaDrawer
{
// Construction
public:
	CMegaDrawerVOD();

// Attributes
public:

// Operations
public:
	virtual void SetBitmaps(UINT uiSkinSingle, UINT uiSkinDouble, UINT uiSkinSingleUn, UINT uiSkinDoubleUn);

	void SetSites(map<CString, CSite> * pSites);
	void SelectCamera(char * pszCameraSign);

	CString GetSelectedSite();
	CString GetSelectedBuilding();
	CString GetSelectedRoom();
	CString GetSelectedCamera();
	CString GetDateFrom();
	CString GetDateTo();

#ifdef _JNC_REC_
	void resetRecords(TimeMark* p, DWORD dwLen);
	CString GetExactDateFrom();
	CString GetExactDateTo();
#endif //def _JNC_REC_

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMegaDrawerVOD)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMegaDrawerVOD();

	// Generated message map functions
protected:
	virtual void RepositionControls();
	//{{AFX_MSG(CMegaDrawerVOD)
	afx_msg void OnSearch();
	afx_msg void OnConnect();
	afx_msg void OnAddressDblClick();
	afx_msg void OnCameraChange();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	map<CString, CSite> * m_pSites;
	char m_strSite[1024], m_strBuilding[1024], m_strRoom[1024], m_strCamera[1024];
	CString m_strDateFrom;
	CString m_strDateTo;

#ifdef _JNC_REC_
	void initFromTo();

	CMegaButton m_btnGetRec;
	CMegaComboBox m_List;
	CMegaComboBox m_Records;
#else //def _JNC_REC_
	CMegaListBox m_List;
#endif //def _JNC_REC_
	CMegaButton m_btnConnect;
	CEdit m_DateFrom, m_DateTo;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MegaDrawerVOD_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
